<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
String path1=path+"/src/webapp";
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="<%=path%>/css/YXQ/test.css" rel="stylesheet" type="text/css" />
<script src="<%=path%>/js/YXQ/test.js" /></script>
<script src="<%=path%>/js/YXQ/YXQ.js" /></script>
<script  type="text/javascript">

function deleteId(memberId){
	var memberId=document.getElementById("memberId").value;
	window.parent.layer.open({
		type : 2,
		title : '删除一条信息',
		shadeClose : false,
		shade : 0.8,
		scrollbar : false,
		area : [ '400px', '300px' ],
		content : [ "<%=path%>/YXQ/TestDeletePage?memberId="+memberId,"no" ],
	});
}

function selectOneById(selectID){
	var selectID=document.getElementById("selectID").value;
	console.log("selectID1="+selectID.toString());
	console.log("哈哈");
	window.parent.layer.open({
		type : 2,
		title : '查询一条信息',
		shadeClose : false,
		shade : 0.8,
		scrollbar : false,
		area : [ '400px', '300px'],
		content : [ "<%=path%>/YXQ/TestSelectOneByIdPage?selectID="+selectID,"no" ],
	});
}

</script>

<title>测试页</title>
</head>
<body>
    <h1>${list.toString()}</h1>
    <c:forEach items="${list}" var="item" varStatus="status">
		<h1>${(status.index+1)%10}--姓名：${item.name}</h1>
	</c:forEach>
	
	<p class="YXQ">CSS测试文字YXQ</p>
	<button onclick="displayDate()">使用JS显示日期</button>
	
	<p id="date_YXQ"></p>
		<hr/>
	
	
	
	Id:<input id="memberId"/>
	<button onclick="deleteId()">删除表groupmember_yxq中该id对应的信息</button>
	<hr/>
	Id:<input id="selectID"/>
	<button onclick="selectOneById()" >根据id值查询一条信息</button>
	<hr>
	<a href="<%=path%>/YXQ/index_1">跳转到查询一条信息的界面</a>
	<hr/>
	<a href="<%=path%>/YXQ/indexAll">查询成员信息</a>
</body>
</html>